﻿using System.Windows.Forms;

namespace LASReporting
{
    public partial class MainWindow : Form
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void ReportComboSelectedIndexChanged(object sender, System.EventArgs e)
        {
            var selectedIndex = reportCombo.SelectedIndex;
            switch (selectedIndex)
            {
                case 0:
                    crystalReportViewer1.ReportSource = this.balanzaCombrobacion1;
                    break;
                case 1:
                    crystalReportViewer1.ReportSource = this.EstadoResultados1;
                    break;
                case 2:
                    crystalReportViewer1.ReportSource = this.BalanceGeneral1;
                    break;
            }
        }
    }
}
